package com.bestcem.xm.member.enums;

import com.bestcem.xm.common.core.enums.CommonEnum;

/**
 * @author dc.wang <dc.wang@idiaoyan.com>
 * @version V1.0
 * @description 投放类型枚举
 * @date 2021/8/16
 */
public enum DeliveryTypeEnum implements CommonEnum {
    /**
     * 未指定类型
     */
    UNSPECIFIED(0, "unspecified"),

    /**
     * 短信投放
     */
    SMS(1, "sms"),

    /**
     * 邮件投放
     */
    EMAIL(2, "email"),

    /**
     * 短信投放
     */
    PHONE(3,"mobile"),

    /**
     * 接口投放
     */
    API(4,"api"),

    /**
     * 接口投放
     */
    INTERFACE(4,"interface"),

    /**
     * 微信投放
     */
    WX(5,"wechat");

    private int index;

    private String name;

    DeliveryTypeEnum(Integer index, String name){
        this.index = index;
        this.name = name;
    }

    @Override
    public int getIndex() {
        return this.index;
    }

    @Override
    public String getName() {
        return this.name;
    }
}
